package com.alibaba.cloud.boot.stock.duboo.provider;

import com.alibaba.cloud.boot.order.facade.dubbo.StockService;
import com.alibaba.cloud.boot.stock.entity.TStock;
import com.alibaba.cloud.boot.stock.mapper.TStockMapper;
import com.alibaba.cloud.boot.stock.service.ITStockService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class StockDubboServiceImpl implements StockService {

    @Autowired
    private ITStockService stockService;

    @Override
    public String reduceStockCount(int stockId, int stockCount) {
        return stockService.reduceStockCount(stockId,stockCount);
    }

    @Override
    public String setStockCount(int stockId, int stockCount) {
        return stockService.setStockCount(stockId,stockCount);
    }
}
